package com.work.Bean;

// @Component
public class beanA {

  private beanB bean;

  // @Autowired
  public beanA(beanB bean) {
    this.bean = bean;
  }

  public void sb() {
    bean.NB();
  }
}
